package seres;

public class Terricola extends Guerrero {

    private static int total = 0;

    public Terricola(String soy) {
        super(soy);
        total++;
        //this.soy= soy;
    }

    public static int getTotal() {
        return total;
    }

    @Override
    public void recibeDisparo(int i) {
        if (vivo && blanco == i) {
            super.recibeDisparo(i);
            total--;
        }
    }
}
